package com.yc.cloud.common.pay.service;


import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;
import com.yc.cloud.common.pay.dto.PayNotifyDto;
import com.yc.cloud.common.pay.dto.QueryOrderByOutTradeNoDto;
import com.yc.cloud.common.pay.dto.request.WxCreateOrderParam;
import jakarta.servlet.http.HttpServletRequest;


public interface WxPayService {


    /**
     * 创建微信预付订单信息
     *
     * @param param 用户填写的订单信息
     * @return 微信预付订单返回体
     */
    PrepayWithRequestPaymentResponse createOrder(WxCreateOrderParam param);

    /**
     * 解析预付款通知信息
     *
     * @return ture or false
     */
    PayNotifyDto payNotifyParser(HttpServletRequest request);

    QueryOrderByOutTradeNoDto queryOrderByOutTradeNo(String orderNo);
}
